package com.yty.demo._4_oop.implements_demo;

import com.yty.demo._4_oop.InterfaceA;

/**
 * @author: yangtaoyao
 * @time: 2020/1/9 16:56
 * @description: 接口实现类
 */
public class SubClass extends classA implements InterfaceA,InterfaceB {

    public SubClass(int age) {
        super(age);
    }

    @Override
    public void start() {
        System.out.println("subClass start");
    }

    @Override
    public void show() {
        System.out.println("subClass show");
    }

    @Override
    public String getInfo() {
        return "subClass getInfo";
    }
}
interface InterfaceB extends InterfaceC{
    void show();
}

interface InterfaceC{
    String  getInfo();
}
class classA{
    public int age;

    public classA(int age) {
        this.age = age;
    }
}